/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const merchantRouter = {
  path: '/merchant',
  component: Layout,
  redirect: 'noRedirect',
  name: 'merchantDemo',
  meta: {
    title: '商户管理',
    icon: 'component'
  },
  children: [
    {
      path: 'index',
      component: () => import('@/views/merchant/index'),
      name: 'merchantIndex',
      meta: { title: '商户列表' }
    },{
      path: 'index/:merchant_id',
      component: () => import('@/views/merchant/index'),
      name: 'merchantIndex',
      meta: { title: '商户列表' },
      hidden:true
    }, {
      path: 'project',
      component: () => import('@/views/merchant/project'),
      name: 'merchantProject',
      meta: { title: '项目列表' }
    }
   , {
      path: 'level',
      component: () => import('@/views/merchant/level'),
      name: 'merchantLevel',
      meta: { title: '等级列表' }
    }

  ]
}

export default merchantRouter
